Scenario #1201: Update Person Data

Given Properties

name value
oldFamilyName Matthieu
newFamilyName Matthieu-Zhang

personUuid

GET /api/hs/office/persons?name=Matthieu
=> status: 200 OK 
[ {
  "uuid" : "cc841e55-8c8a-4ed6-9182-1db104966aed", // Person: Michelle Matthieu
  "personType" : "NATURAL_PERSON",
  "tradeName" : null,
  "salutation" : null,
  "title" : null,
  "givenName" : "Michelle",
  "familyName" : "Matthieu"
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Patch the Additional Phone-Number into the Person

PATCH /api/hs/office/persons/cc841e55-8c8a-4ed6-9182-1db104966aed // personUuid
{
  "familyName" : "Matthieu-Zhang"
}
=> status: 200 OK 

Verify that the Family Name Got Amended

GET /api/hs/office/persons/cc841e55-8c8a-4ed6-9182-1db104966aed // personUuid
=> status: 200 OK 
{
  "uuid" : "cc841e55-8c8a-4ed6-9182-1db104966aed", // personUuid
  "personType" : "NATURAL_PERSON",
  "tradeName" : null,
  "salutation" : null,
  "title" : null,
  "givenName" : "Michelle",
  "familyName" : "Matthieu-Zhang"
}

generated on 03-10-2025 12:07:40 for branch master